# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 16:48
# @Author  : feng
# @Email   : feng@163.com
# @File    : khxx_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from pages.login_page import LoginPage
from pages.base_page import BasePage

class KhxxPage(BasePage):
    '''进入商机页面'''
    url='http://192.168.1.5:8081/crm/index.php?m=business'
    '''定位器'''

    sj_locator=(By.LINK_TEXT,'商机')

    ck_locator=(By.LINK_TEXT,'查看')

    def click_sj(self):
        self.driver.find_element(*self.sj_locator).click()  #切换到商机页面
    def click_ck(self):
        self.driver.find_element(*self.ck_locator).click() #查看客户信息